﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Add
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="<%: Url.Content("~/Content/css/Common/Common.css") %>" rel="stylesheet"
        type="text/css" />
    <script src="../../Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.form.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.expand.js" type="text/javascript"></script>
    <script type="text/javascript">
        var SaveSuccess = "<%:Html.Lang("Menu_Add_Success")%>";
        var SaveFail = "<%:Html.Lang("Menu_Add_SaveFail")%>";
    </script>
    <script src="../../Scripts/Menu/Add.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%string ParentId = ViewData["ParentId"].ToString(); %>
    <input type="hidden" id="ParentId" value="<%=Html.Encode(ParentId)%>" />
    <form id="myForm" runat="server">
    <%string ParentName = ViewData["ParentName"].ToString(); %>
    <div id="tab" style="height: 300px;">
        <table style="float: left; height: 300px;">
            <tr>
                <td colspan="2" style="text-align: center;">
                    <%--      <%=Html.Encode(ViewData["Title"].ToString())%>--%>
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Add_Name")%>
                </td>
                <td>
                    <input type="text" id="Name" maxlength="100" name="1" class="required" value="" />
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Add_Description")%>
                </td>
                <td>
                    <input type="text" id="Description" maxlength="100" name="2" class="required" value="" />
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Add_Parent")%>
                </td>
                <td>
                    <input type="text" id="Parent" disabled="disabled" value="<%=Html.Encode(ParentName)%>" />
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Add_LinkURL")%>
                </td>
                <td>
                    <input type="text" id="LinkURL" maxlength="100" name="6" class="required" value="" />
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Add_IsMenu")%>
                </td>
                <td>
                    <input type="radio" id="Radio1" name="IsMenu" value="1" checked="checked" /><label
                        for="chkYes"><%:Html.Lang("Menu_Add_IsMenu_Yes")%></label>
                    <input type="radio" id="Radio2" name="IsMenu" value="0" /><label for="chkNo"><%:Html.Lang("Menu_Add_IsMenu_No")%></label>
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Add_IsDisplay")%>
                </td>
                <td>
                    <input type="radio" id="chkYes" name="IsDisplay" value="1" checked="checked" /><label
                        for="chkYes"><%:Html.Lang("Menu_Add_Display")%></label>
                    <input type="radio" id="chkNo" name="IsDisplay" value="0" /><label for="chkNo"><%:Html.Lang("Menu_Add_Hidden")%></label>
                </td>
            </tr>
            <tr>
                <td>
                    <button type="button" class="SpanButton" id="btnSave">
                        <%:Html.Lang("Menu_Add_Save")%></button>
                </td>
                <td>
                    <button type="button" class="SpanButton" id="btnCancel">
                        <%:Html.Lang("Menu_Add_Cancel")%></button>
                </td>
            </tr>
        </table>
    </div>
    </form>
</asp:Content>
